home *** CD-ROM | disk | FTP | other *** search
- // ================
- // BATTLEZONE SHELL
- // ================
-
- //
- // CREATE SHELL LOGIN PAGE
- //
- CreateControl("ShellLoad", "WINDOW")
- {
- // inherit root window's dimensions
- Geometry("PARENTWIDTH", "PARENTHEIGHT");
-
- // set window style
- Style("TRANSPARENT");
-
- //
- // create the "back" button
- //
- CreateControl("Back", "BUTTON")
- {
- ColorGroup("MAGENTA");
-
- Geometry("LEFT", "TOP");
- Position(20, 30);
- Size(120, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(80, 10);
- Style("ROLLOVER", "OUTLINE");
- Projector(0);
- Title("Back");
- TitleFont("MEDIUM");
- Cursor("Highlight");
- NotifyParent("Button::Press", "Back");
- }
-
- //
- // create the game list box
- //
- CreateControl("GameList", "WINDOW")
- {
- Geometry("HCENTRE", "TOP");
- Position(0, 120);
- Size(290, 200);
- BorderSize(10);
- BevelSize(5);
- TabSize(120, 10);
- Style("OUTLINE");
- Projector(1);
- Title("Games");
- TitleFont("MEDIUM");
-
- CreateControl("List", "LISTBOX")
- {
- ColorGroup("LISTBOX");
-
- Position(0, 0);
- Size(290, 200);
- CellSize(290, 10);
- BorderSize(5);
- BevelSize(3);
- Font("SMALL");
- UseVar("shell.loadgame.name");
- Cursor("Highlight");
- }
- }
-
- //
- // create the load game button
- //
- CreateControl("LoadGame", "BUTTON")
- {
- Geometry("HCENTRE", "TOP");
- Position(-80, 360);
- Size(130, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(60, 10);
- Title("Load");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "OUTLINE");
- Projector(5);
- Cursor("Highlight");
- NotifyParent("Buton::Press", "Load");
- }
-
- //
- // create the save game button
- //
- CreateControl("SaveGame", "BUTTON")
- {
- Geometry("HCENTRE", "TOP");
- Position(80, 360);
- Size(130, 0);
- BorderSize(10);
- BevelSize(5);
- TabSize(60, 10);
- Title("Save");
- TitleFont("MEDIUM");
- Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
- Projector(5);
- Cursor("Highlight");
- NotifyParent("Button::Press", "Save");
- }
-
- //
- // handle the "back" event
- //
- OnEvent("Back")
- {
- FadeOut();
- FadeIn("|ShellMain");
- }
-
- //
- // handle the "load" event
- //
- OnEvent("Load")
- {
- }
-
- //
- // handle the "save" event
- //
- OnEvent("Save")
- {
- }
- }
-
-